package net.lab0.fractal.concurrent;

import java.awt.Dimension;

import javax.swing.JFrame;

import net.lab0.fractal.classes.ViewCoordinates;
import net.lab0.fractal.fractals.Mandelbrot;
import net.lab0.fractal.gui.Fractal2dView;


public class Launcher
{
    public static void main(String[] args)
    {
        ViewCoordinates coords = new ViewCoordinates(0.0, 0.0, 2.0, 2.0);
        Mandelbrot mandelbrot = new Mandelbrot();
        mandelbrot.setMaxIterations(512);
        JFrame f = new JFrame("Fractal");
        f.add(new Fractal2dView(mandelbrot, coords));
        Dimension dimension = new Dimension(800, 600);
        f.setSize(dimension);
        f.setVisible(true);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
}
